//
// function fn(){
//     console.log(this.name)
// }
// window.name='牙膏'
// fn()
let stu={
    name:'巧克力',
    friends:['香子兰','枫','肉桂','红豆'],
    play: function (){
        this.friends.forEach(function (item){
            console.log(this.name+' '+item)
        })
    }
}
let stu2={
    name:'巧克力',
    friends:['香子兰','枫','肉桂','红豆'],
    play: function (){
        this.friends.forEach( item=>console.log(this.name+' '+item))
    }
}
// stu.play()
// stu2.play()
let son =Object.create(stu2)
son.play()

